const pro = require("./pro")

const data = [{
    proName: "c",
    price: 4,
    title: "ccc",
    flag: false
},{
    proName: "d",
    price: 3,
    title: "ddd",
    flag: true
},{
    proName: "a",
    price: 2.5,
    title: "aaa",
    flag: false
},{
    proName: "b",
    price: 3.5,
    title: "bbb",
    flag: true
}]

pro.insertMany(data,(err)=>{
    if(err){
        console.log("插入失败")
    }else{
        console.log("插入成功")
    }
})